n=1000
for i in range(n):
print('We like Python’s turtles! ')
3.
for i in['January','February','March','April','May','June','July','August','September','October','November','December']:
print('One of the months of the year is',i)
5.
xs = [12, 10, 32, 3, 66, 17, 42, 99, 20]
for i in range(9):
print(xs[i],end=' ')
for i in range(9):
print(xs[i]**2,end=' ')
total = 0
for i in range(0, 9):
total = total + xs[i]
print(total, end=' ')
for i in range(0,9):
product = product * xs[i]
print(product)
6.
n=3
import turtle
wn=turtle.Screen
for i in range(n):
turtle.forward(100)
turtle.left(360/n)
wn.mainloop()
1.
n=1000 for i in range(n): print('We like Python’s turtles! ')3.5.
xs = [12, 10, 32, 3, 66, 17, 42, 99, 20] for i in range(9): print(xs[i],end=' ') for i in range(9): print(xs[i]**2,end=' ') total = 0 for i in range(0, 9): total = total + xs[i] print(total, end=' ') for i in range(0,9): product = product * xs[i] print(product)6.n=3 import turtle wn=turtle.Screen for i in range(n): turtle.forward(100) turtle.left(360/n) wn.mainloop()7,811.
12.
13.